package cn.itsource.feignclient;

import cn.itsource.util.AjaxResult;
import cn.itsource.fallback.PageFallbackFactory;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.*;

//负载均衡器负载调用redis数据库,调用哪个服务
@FeignClient(value = "es-server", fallbackFactory = PageFallbackFactory.class)
public interface PageFeignClientt {
    //页面静态化
    @RequestMapping(value="/pager/static",method= RequestMethod.POST)
     AjaxResult pageStatic(@RequestParam("redisKey") String redisKey,@RequestParam("pagerName") String pagerName);
}
